import request from '@/utils/request'
const api_name = '/admin/hosp/hospitalSet'

export default{
//分页查询接口
selectByPage(page,limit,searchObj) {
    return request({
        url: `${api_name}/selectByPage/${page}/${limit}`,
        method: 'get',
        params:searchObj
    })
  },

//根据id删除接口
removeById(id){
    return request({
        url: `${api_name}/delete/${id}`,
        method: 'delete',
    })
},

//批量删除接口
removeBatch(ids){
    return request({
        url: `${api_name}/batchDelete`,
        method: 'delete',
        data: ids
    })
},

//锁定和取消锁定接口
lockHospSet(id,status){
    return request({
        url: `${api_name}/updateStatus/${id}/${status}`,
        method: 'put',
    })
},

//添加医院设置信息接口
addHospSet(hospitalSet){
    return request({
        url: `${api_name}/save`,
        method: 'post',
        data: hospitalSet
    })
},

//编辑方法
edit(id){
    return request({
        url: `${api_name}/selectById/${id}`,
        method: 'get'
    })
},

//修改方法
update(hospitalSet){
    return request({
        url: `${api_name}/update`,
        method: 'put',
        data: hospitalSet
    })
}
}